package com.sun.sc.utils;

public class CodeUtils {

    /**
     * 平均0.2纳秒生成一个
     */
    public static String generateCode() {
        String random = String.valueOf((int) (Math.random() * 1000000));
        return random.length() == 6 ? random : generateCode();
    }
}
